<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">{{name}}</h1>
</div>
<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      <div class="row">
        <h4 class="col-lg-4 control-label">系统应用信息</h4>
      </div>
    </div>

    <div class="panel-body">
      <form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
        <div class="form-group">
          <label class="col-lg-2 control-label">应用编码:</label>
          <div class="col-lg-4">
            <input type="text" class="form-control" placeholder="必填" ng-model="obj.appid">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">编码key:</label>
          <div class="col-lg-4">
            <input type="text" class="form-control" placeholder="必填" ng-model="obj.encodingkey">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">状态:</label>
          <div class="col-lg-4">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" ng-model="obj.state" value="0"><i></i>可用
              </label>
              <label class="i-checks" style="margin-left: 10px">
                <input type="radio" ng-model="obj.state" value="1"><i></i>不可用
              </label>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">代理类型:</label>
          <div class="col-lg-4">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" ng-model="obj.proxy_type" value="0"><i></i>用户代理
              </label>
              <label class="i-checks" style="margin-left: 10px">
                <input type="radio" ng-model="obj.proxy_type" value="1"><i></i>机构代理
              </label>
              <label class="i-checks" style="margin-left: 10px">
                <input type="radio" ng-model="obj.proxy_type" value="9"><i></i>开放代理
              </label>
            </div>
          </div>
        </div>
        <div class="form-group" ng-if="obj.proxy_type=='0'">
          <label class="col-lg-2 control-label">用户代理:</label>
          <div class="col-lg-4">
            <input type="text" class="form-control" ng-model="obj.bind_login_name">
          </div>
        </div>
        <div class="form-group" ng-if="obj.proxy_type=='0' || obj.proxy_type=='1'">
          <label class="col-lg-2 control-label">机构代理:</label>
          <div class="col-lg-2">
            <input type="text" ng-keypress="($event.which === 13)?gogo():0" class="form-control" ng-model="obj.company_code">
          </div>
          <div class="col-lg-8">
            <div style="padding-right: 20px; padding-bottom: 5px; float: left;"  ng-repeat="name in office">
              <button class="btn btn-sm btn-info">{{name}}
                <i class="glyphicon glyphicon-remove" ng-click="remove($index)"></i>
              </button>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">通知状态:</label>
          <div class="col-lg-4">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" ng-model="obj.notice_state" value="1"><i></i>通知
              </label>
              <label class="i-checks" style="margin-left: 10px">
                <input type="radio" ng-model="obj.notice_state" value="0"><i></i>不通知
              </label>
            </div>
          </div>
        </div>
        <div class="form-group" ng-hide="obj.notice_state=='0'">
          <label class="col-lg-2 control-label">通知地址:</label>
          <div class="col-lg-4">
            <input type="text" class="form-control" ng-model="obj.notice_url">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">校验方式:</label>
          <div class="col-lg-4">
            <div class="radio">
              <label class="i-checks">
                <input type="radio" ng-model="obj.check_type" value="0"><i></i>签名校验
              </label>
              <label class="i-checks" style="margin-left: 10px">
                <input type="radio" ng-model="obj.check_type" value="1"><i></i>业务校验
              </label>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">排序:</label>
          <div class="col-lg-4">
            <input type="number" class="form-control" ng-model="obj.sort">
          </div>
        </div>
        <div class="form-group">
          <label class="col-lg-2 control-label">备注信息:</label>
          <div class="col-lg-4">
            <textarea id="remarks" class="form-control" rows="3" ng-model="obj.remarks"></textarea>
          </div>
        </div>
      </form>
      <div class="col-lg-2"></div>
        <div class="col-lg-3">
          <button class="btn btn-primary btn-rounded" ng-click="save()">保存</button>
          <button class="btn btn-default btn-rounded" ng-click="cancel()">取消</button>
        </div>
    </div>

   


  </div>
</div>




